import responseHandler from '../response-handler'
function QueryAward(params, success, fail) {
    function makeData(data) {
        // if (data.rule) {
        //     data.rule = data.rule.split('\n')
        // } else {
        //     data.rule = '暂无规则'
        //     data.rule = data.rule.split('\n')
        // }
        let returnData = {
            rule: data.rule,
            awardList: data.awards
        };
        return returnData
    }
    params['methodName'] = 'QueryAward'
    this.$.get(params).then(responseHandler.success(success, fail, makeData), responseHandler.error(fail))
}
export default{
    QueryAward
}